From 27abde407ffe4c34173d0bb5b8ffd264aaeee359 Mon Sep 17 00:00:00 2001 From: Kevin Cozens Date: Sat, 15 Sep 2007 00:01:00 +0000 Subject: [PATCH] Define name of babl library file. 2007-09-14 Kevin Cozens * configure.ac: Define name of babl library file. * babl/babl-extension.c: Use name of babl library defined when ./configure was run. svn path=/trunk/; revision=241 --- ChangeLog | 7 +++++++ babl/babl-extension.c | 2 +- configure.ac | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 41fd171..731f850 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-09-14 Kevin Cozens + + * configure.ac: Define name of babl library file. + + * babl/babl-extension.c: Use name of babl library defined when + ./configure was run. + 2007-09-14 Kevin Cozens Changes to let BABL find its extensions at run time when the diff --git a/babl/babl-extension.c b/babl/babl-extension.c index 1f7f203..807b8a6 100644 --- a/babl/babl-extension.c +++ b/babl/babl-extension.c @@ -23,7 +23,7 @@ #include "config.h" #endif -#define BABL_PATH PREFIX "/lib/babl-0.0" +#define BABL_PATH PREFIX "/lib/" BABL_LIBRARY #define BABL_INIT_HOOK init_hook (); #define BABL_DESTROY_HOOK destroy_hook (); diff --git a/configure.ac b/configure.ac index 3d998bc..951541d 100644 --- a/configure.ac +++ b/configure.ac @@ -208,6 +208,8 @@ AC_REPLACE_FUNCS(gettimeofday) AC_DEFINE_UNQUOTED(BABL_PATH_SEPARATOR, '$PATH_SEP', [separator between paths in BABL_PATH]) AC_DEFINE_UNQUOTED(BABL_DIR_SEPARATOR, "$DIR_SEP", [separator between directories in BABL_PATH]) +AC_DEFINE_UNQUOTED(BABL_LIBRARY, "$PACKAGE_NAME-$BABL_API_VERSION", [name of BABL library]) + ##################################### # File extension for shared libraries ##################################### -- 2.30.2